package com.learn.spring.aop.advice;

import org.springframework.aop.ThrowsAdvice;

/**
 * @author wangxing
 * @version 2020/5/9 9:40 Administrator
 */
public class HijackThrowExceptionMethod implements ThrowsAdvice {
    public void afterThrowing(IllegalArgumentException e) throws Throwable {
        System.out.println("HijackThrowException : Throw exception hijacked!");
    }
}
